Optimal. Leaf size=83 \[ -\frac {3 d \sqrt {d^2-e^2 x^2}}{2 e}-\frac {(d+e x) \sqrt {d^2-e^2 x^2}}{2 e}+\frac {3 d^2 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {671, 641, 217, 203} \[ -\frac {3 d \sqrt {d^2-e^2 x^2}}{2 e}-\frac {(d+e x) \sqrt {d^2-e^2 x^2}}{2 e}+\frac {3 d^2 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 217
Rule 641
Rule 671
Rubi steps
\begin {align*} \int \frac {(d+e x)^2}{\sqrt {d^2-e^2 x^2}} \, dx &=-\frac {(d+e x) \sqrt {d^2-e^2 x^2}}{2 e}+\frac {1}{2} (3 d) \int \frac {d+e x}{\sqrt {d^2-e^2 x^2}} \, dx\\ &=-\frac {3 d \sqrt {d^2-e^2 x^2}}{2 e}-\frac {(d+e x) \sqrt {d^2-e^2 x^2}}{2 e}+\frac {1}{2} \left (3 d^2\right ) \int \frac {1}{\sqrt {d^2-e^2 x^2}} \, dx\\ &=-\frac {3 d \sqrt {d^2-e^2 x^2}}{2 e}-\frac {(d+e x) \sqrt {d^2-e^2 x^2}}{2 e}+\frac {1}{2} \left (3 d^2\right ) \operatorname {Subst}\left (\int \frac {1}{1+e^2 x^2} \, dx,x,\frac {x}{\sqrt {d^2-e^2 x^2}}\right )\\ &=-\frac {3 d \sqrt {d^2-e^2 x^2}}{2 e}-\frac {(d+e x) \sqrt {d^2-e^2 x^2}}{2 e}+\frac {3 d^2 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 58, normalized size = 0.70 \[ \frac {3 d^2 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )-(4 d+e x) \sqrt {d^2-e^2 x^2}}{2 e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.73, size = 60, normalized size = 0.72 \[ -\frac {6 \, d^{2} \arctan \left (-\frac {d - \sqrt {-e^{2} x^{2} + d^{2}}}{e x}\right ) + \sqrt {-e^{2} x^{2} + d^{2}} {\left (e x + 4 \, d\right )}}{2 \, e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.25, size = 40, normalized size = 0.48 \[ \frac {3}{2} \, d^{2} \arcsin \left (\frac {x e}{d}\right ) e^{\left (-1\right )} \mathrm {sgn}\relax (d) - \frac {1}{2} \, \sqrt {-x^{2} e^{2} + d^{2}} {\left (4 \, d e^{\left (-1\right )} + x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 71, normalized size = 0.86 \[ \frac {3 d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 \sqrt {e^{2}}}-\frac {\sqrt {-e^{2} x^{2}+d^{2}}\, x}{2}-\frac {2 \sqrt {-e^{2} x^{2}+d^{2}}\, d}{e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.97, size = 53, normalized size = 0.64 \[ \frac {3 \, d^{2} \arcsin \left (\frac {e x}{d}\right )}{2 \, e} - \frac {1}{2} \, \sqrt {-e^{2} x^{2} + d^{2}} x - \frac {2 \, \sqrt {-e^{2} x^{2} + d^{2}} d}{e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (d+e\,x\right )}^2}{\sqrt {d^2-e^2\,x^2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 5.04, size = 269, normalized size = 3.24 \[ d^{2} \left (\begin {cases} \frac {\sqrt {\frac {d^{2}}{e^{2}}} \operatorname {asin}{\left (x \sqrt {\frac {e^{2}}{d^{2}}} \right )}}{\sqrt {d^{2}}} & \text {for}\: d^{2} > 0 \wedge e^{2} > 0 \\\frac {\sqrt {- \frac {d^{2}}{e^{2}}} \operatorname {asinh}{\left (x \sqrt {- \frac {e^{2}}{d^{2}}} \right )}}{\sqrt {d^{2}}} & \text {for}\: d^{2} > 0 \wedge e^{2} < 0 \\\frac {\sqrt {\frac {d^{2}}{e^{2}}} \operatorname {acosh}{\left (x \sqrt {\frac {e^{2}}{d^{2}}} \right )}}{\sqrt {- d^{2}}} & \text {for}\: d^{2} < 0 \wedge e^{2} < 0 \end {cases}\right ) + 2 d e \left (\begin {cases} \frac {x^{2}}{2 \sqrt {d^{2}}} & \text {for}\: e^{2} = 0 \\- \frac {\sqrt {d^{2} - e^{2} x^{2}}}{e^{2}} & \text {otherwise} \end {cases}\right ) + e^{2} \left (\begin {cases} - \frac {i d^{2} \operatorname {acosh}{\left (\frac {e x}{d} \right )}}{2 e^{3}} - \frac {i d x \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}}{2 e^{2}} & \text {for}\: \left |{\frac {e^{2} x^{2}}{d^{2}}}\right | > 1 \\\frac {d^{2} \operatorname {asin}{\left (\frac {e x}{d} \right )}}{2 e^{3}} - \frac {d x}{2 e^{2} \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} + \frac {x^{3}}{2 d \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________